<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

    <title>订单管理</title>

    <link href="/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
    <link href="/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

    <link href="/css/personal.css" rel="stylesheet" type="text/css">
    <link href="/css/orstyle.css" rel="stylesheet" type="text/css">

    <script src="/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
    <script src="/AmazeUI-2.4.2/assets/js/amazeui.js"></script>

</head>

<body>
<!--头 -->
<header>
    <article>
        <div class="mt-logo">
            <!--顶部导航条 -->
            <div class="am-container header">
                <ul class="message-l">
                    <div class="topMessage">
                        <div class="menu-hd">
                            <a href="#" target="_top" class="h">亲，请登录</a>
                            <a href="#" target="_top">免费注册</a>
                        </div>
                    </div>
                </ul>
                <ul class="message-r">
                    <div class="topMessage home">
                        <div class="menu-hd"><a href="#" target="_top" class="h">商城首页</a></div>
                    </div>
                    <div class="topMessage my-shangcheng">
                        <div class="menu-hd MyShangcheng"><a href="#" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
                    </div>
                    <div class="topMessage mini-cart">
                        <div class="menu-hd"><a id="mc-menu-hd" href="#" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a></div>
                    </div>
                    <div class="topMessage favorite">
                        <div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
                </ul>
            </div>

            <!--悬浮搜索框-->

            <div class="nav white">
                <div class="logoBig">
                    <li><img src="../images/logobig.png" /></li>
                </div>

                <div class="search-bar pr">
                    <a name="index_none_header_sysc" href="#"></a>
                    <form>
                        <input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
                        <input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
                    </form>
                </div>
            </div>

            <div class="clear"></div>
        </div>
        </div>
    </article>
</header>
<div class="nav-table">
    <div class="long-title"><span class="all-goods">全部分类</span></div>
    <div class="nav-cont">
        <ul>
            <li class="index"><a href="#">首页</a></li>
            <li class="qc"><a href="#">闪购</a></li>
            <li class="qc"><a href="#">限时抢</a></li>
            <li class="qc"><a href="#">团购</a></li>
            <li class="qc last"><a href="#">大包装</a></li>
        </ul>
        <div class="nav-extra">
            <i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
            <i class="am-icon-angle-right" style="padding-left: 10px;"></i>
        </div>
    </div>
</div>
<b class="line"></b>
<div class="center">
    <div class="col-main">
        <div class="main-wrap">

            <div class="user-order">

                <!--标题 -->
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">个人订单管理</strong> / <small>Store</small></div>
                </div>
                <hr/>

                <div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

                    <ul class="am-avg-sm-5 am-tabs-nav am-nav am-nav-tabs">
                        <li class="am-active"><a href="#tab1">全部订单</a></li>
                        <li><a href="#tab2">待支付</a></li>
                        <li><a href="#tab3">待评价</a></li>
                        <li><a href="#tab4">已取消</a></li>
                        <li><a href="#tab5">已评价</a></li>

                    </ul>

                    <div class="am-tabs-bd" th:each="order: ${orders}">

                        <!--全部订单显示 tab1-->
                        <div class="am-tab-panel am-fade am-in am-active" id="tab1" >
                            <div class="order-top">
                                <div class="th th-price">
                                    <td class="td-inner">订单ID</td>
                                </div>
                                <div class="th th-item">
                                    <td class="td-inner">订单地址&电话</td>
                                </div>

                                <div class="th th-number">
                                    <td class="td-inner">商品名</td>
                                </div>
                                <div class="th th-operation">
                                    <td class="td-inner">商品价格</td>
                                </div>
                                <div class="th th-amount">
                                    <td class="td-inner">数量</td>
                                </div>

                                <div class="th th-status">
                                    <td class="td-inner">总价</td>
                                </div>
                                <div class="th th-change">
                                    <td class="td-inner">操作</td>
                                </div>
                            </div>

                            <div class="order-main" >
                                <div class="order-list">
                                    <div class="order-status4">
                                        <div class="order-content">
                                            <div class="order-left">
                                                <ul class="item-list">
                                                    <li class="td td-price">
                                                        <div class="item-price" id="orderId">
                                                            [[${order.orderId}]]
                                                        </div>
                                                    </li>
                                                    <li class="td td-item">
                                                        <!--<div class="item-pic">-->
                                                        <!--</div>-->
                                                        <div class="item-info">
                                                            <div class="item-basic-info">
                                                                <p id="description">[[${order.orderAddress}]]</p>
                                                                <p id="createtime">[[${order.orderPhone}]]</p>
                                                            </div>
                                                        </div>
                                                    </li>

                                                    <li class="td td-number">
                                                        <div class="item-number" id="name">
                                                            <span>[[${order.productName}]]</span>
                                                        </div>
                                                    </li>
                                                    <li class="td td-operation">
                                                        <div class="item-number" id="num">
                                                            <span>[[${order.orderPrice}]]</span>
                                                        </div>
                                                    </li>
                                                </ul>

                                            </div>
                                            <div class="order-right">
                                                <li class="td td-amount">
                                                    <div class="item-amount" id="state">
                                                        [[${order.orderNum}]]
                                                    </div>
                                                </li>
                                                <li class="td td-status">
                                                    <div class="item-status">
                                                        <br>
                                                        <p></p>
                                                        <p> [[${order.orderSum}]]</p>
                                                    </div>
                                                </li>
                                                <li class="td td-item">

                                                </li>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!--待支付订单显示-->
                        <div class="am-tab-panel am-fade " id="tab2" th:if="${order.orderState}==1">
                            <div class="order-top">
                                <div class="th th-price">
                                    <td class="td-inner">订单ID</td>
                                </div>
                                <div class="th th-item">
                                    <td class="td-inner">订单地址&电话</td>
                                </div>

                                <div class="th th-number">
                                    <td class="td-inner">商品名</td>
                                </div>
                                <div class="th th-operation">
                                    <td class="td-inner">商品价格</td>
                                </div>
                                <div class="th th-amount">
                                    <td class="td-inner">数量</td>
                                </div>

                                <div class="th th-status">
                                    <td class="td-inner">总价</td>
                                </div>
                                <div class="th th-change">
                                    <td class="td-inner">操作</td>
                                </div>
                            </div>

                            <div class="order-main" >
                                <div class="order-list">
                                    <div class="order-status4">
                                        <div class="order-content">
                                            <div class="order-left">
                                                <ul class="item-list">
                                                    <li class="td td-price">
                                                        <div class="item-price" id="orderId">
                                                            [[${order.orderId}]]
                                                        </div>
                                                    </li>
                                                    <li class="td td-item">
                                                        <!--<div class="item-pic">-->
                                                        <!--</div>-->
                                                        <div class="item-info">
                                                            <div class="item-basic-info">
                                                                <p id="description">[[${order.orderAddress}]]</p>
                                                                <p id="createtime">[[${order.orderPhone}]]</p>
                                                            </div>
                                                        </div>
                                                    </li>

                                                    <li class="td td-number">
                                                        <div class="item-number" id="name">
                                                            <span>[[${order.productName}]]</span>
                                                        </div>
                                                    </li>
                                                    <li class="td td-operation">
                                                        <div class="item-number" id="num">
                                                            <span>[[${order.orderPrice}]]</span>
                                                        </div>
                                                    </li>
                                                </ul>

                                            </div>
                                            <div class="order-right">
                                                <li class="td td-amount">
                                                    <div class="item-amount" id="state">
                                                        [[${order.orderNum}]]
                                                    </div>
                                                </li>
                                                <li class="td td-status">
                                                    <div class="item-status">
                                                        <br>
                                                        <p></p>
                                                        <p> [[${order.orderSum}]]</p>
                                                    </div>
                                                </li>
                                                <li class="td td-item">
                                                    <div class="item-status">
                                                    <p><a th:href="'/order/payOrder?orderId='+${order.orderId}"><button class="am-btn am-btn-danger anniu">支付订单</button></a></p>
                                                    <p></p>
                                                    <p><a th:href="'/order/cancelOrder?orderId='+${order.orderId}"><button class="am-btn am-btn-danger anniu">取消订单</button></a></p>
                                                    </div>
                                                </li>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!--待评价订单显示-->
                        <div class="am-tab-panel am-fade " id="tab3" th:if="${order.orderState}==2" >
                            <div class="order-top">
                                <div class="th th-price">
                                    <td class="td-inner">订单ID</td>
                                </div>
                                <div class="th th-item">
                                    <td class="td-inner">订单地址&电话</td>
                                </div>

                                <div class="th th-number">
                                    <td class="td-inner">商品名</td>
                                </div>
                                <div class="th th-operation">
                                    <td class="td-inner">商品价格</td>
                                </div>
                                <div class="th th-amount">
                                    <td class="td-inner">数量</td>
                                </div>

                                <div class="th th-status">
                                    <td class="td-inner">总价</td>
                                </div>
                                <div class="th th-change">
                                    <td class="td-inner">操作</td>
                                </div>
                            </div>

                            <div class="order-main" >
                                <div class="order-list">
                                    <div class="order-status4">
                                        <div class="order-content">
                                            <div class="order-left">
                                                <ul class="item-list">
                                                    <li class="td td-price">
                                                        <div class="item-price" id="orderId">
                                                            [[${order.orderId}]]
                                                        </div>
                                                    </li>
                                                    <li class="td td-item">
                                                        <!--<div class="item-pic">-->
                                                        <!--</div>-->
                                                        <div class="item-info">
                                                            <div class="item-basic-info">
                                                                <p id="description">[[${order.orderAddress}]]</p>
                                                                <p id="createtime">[[${order.orderPhone}]]</p>
                                                            </div>
                                                        </div>
                                                    </li>

                                                    <li class="td td-number">
                                                        <div class="item-number" id="name">
                                                            <span>[[${order.productName}]]</span>
                                                        </div>
                                                    </li>
                                                    <li class="td td-operation">
                                                        <div class="item-number" id="num">
                                                            <span>[[${order.orderPrice}]]</span>
                                                        </div>
                                                    </li>
                                                </ul>

                                            </div>
                                            <div class="order-right">
                                                <li class="td td-amount">
                                                    <div class="item-amount" id="state">
                                                        [[${order.orderNum}]]
                                                    </div>
                                                </li>
                                                <li class="td td-status">
                                                    <div class="item-status">
                                                        <br>
                                                        <p></p>
                                                        <p> [[${order.orderSum}]]</p>
                                                    </div>
                                                </li>
                                                <li class="td td-item">
                                                    <a th:href="'/order/cancelOrder?orderId='+${order.orderId}"><button class="am-btn am-btn-danger anniu">去评价</button></a>
                                                </li>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!--已经取消的订单显示-->
                        <div class="am-tab-panel am-fade " id="tab4" th:if="${order.orderState}==0">
                            <div class="order-top">
                                <div class="th th-price">
                                    <td class="td-inner">订单ID</td>
                                </div>
                                <div class="th th-item">
                                    <td class="td-inner">订单地址&电话</td>
                                </div>

                                <div class="th th-number">
                                    <td class="td-inner">商品名</td>
                                </div>
                                <div class="th th-operation">
                                    <td class="td-inner">商品价格</td>
                                </div>
                                <div class="th th-amount">
                                    <td class="td-inner">数量</td>
                                </div>

                                <div class="th th-status">
                                    <td class="td-inner">总价</td>
                                </div>
                                <div class="th th-change">
                                    <td class="td-inner">操作</td>
                                </div>
                            </div>

                            <div class="order-main" >
                                <div class="order-list">
                                    <div class="order-status4">
                                        <div class="order-content">
                                            <div class="order-left">
                                                <ul class="item-list">
                                                    <li class="td td-price">
                                                        <div class="item-price" id="orderId">
                                                            [[${order.orderId}]]
                                                        </div>
                                                    </li>
                                                    <li class="td td-item">
                                                        <!--<div class="item-pic">-->
                                                        <!--</div>-->
                                                        <div class="item-info">
                                                            <div class="item-basic-info">
                                                                <p id="description">[[${order.orderAddress}]]</p>
                                                                <p id="createtime">[[${order.orderPhone}]]</p>
                                                            </div>
                                                        </div>
                                                    </li>

                                                    <li class="td td-number">
                                                        <div class="item-number" id="name">
                                                            <span>[[${order.productName}]]</span>
                                                        </div>
                                                    </li>
                                                    <li class="td td-operation">
                                                        <div class="item-number" id="num">
                                                            <span>[[${order.orderPrice}]]</span>
                                                        </div>
                                                    </li>
                                                </ul>

                                            </div>
                                            <div class="order-right">
                                                <li class="td td-amount">
                                                    <div class="item-amount" id="state">
                                                        [[${order.orderNum}]]
                                                    </div>
                                                </li>
                                                <li class="td td-status">
                                                    <div class="item-status">
                                                        <br>
                                                        <p></p>
                                                        <p> [[${order.orderSum}]]</p>
                                                    </div>
                                                </li>
                                                <li class="td td-item"></li>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!--已经评价的订单-->
                        <div class="am-tab-panel am-fade " id="tab5" th:if="${order.orderState}==3">
                            <div class="order-top">
                                <div class="th th-price">
                                    <td class="td-inner">订单ID</td>
                                </div>
                                <div class="th th-item">
                                    <td class="td-inner">订单地址&电话</td>
                                </div>

                                <div class="th th-number">
                                    <td class="td-inner">商品名</td>
                                </div>
                                <div class="th th-operation">
                                    <td class="td-inner">商品价格</td>
                                </div>
                                <div class="th th-amount">
                                    <td class="td-inner">数量</td>
                                </div>

                                <div class="th th-status">
                                    <td class="td-inner">总价</td>
                                </div>
                                <div class="th th-change">
                                    <td class="td-inner">操作</td>
                                </div>
                            </div>

                            <div class="order-main">
                                <div class="order-list">
                                    <div class="order-status4">
                                        <div class="order-content">
                                            <div class="order-left">
                                                <ul class="item-list">
                                                    <li class="td td-price">
                                                        <div class="item-price" id="orderId">
                                                            [[${order.orderId}]]
                                                        </div>
                                                    </li>
                                                    <li class="td td-item">
                                                        <!--<div class="item-pic">-->
                                                        <!--</div>-->
                                                        <div class="item-info">
                                                            <div class="item-basic-info">
                                                                <p id="description">[[${order.orderAddress}]]</p>
                                                                <p id="createtime">[[${order.orderPhone}]]</p>
                                                            </div>
                                                        </div>
                                                    </li>

                                                    <li class="td td-number">
                                                        <div class="item-number" id="name">
                                                            <span>[[${order.productName}]]</span>
                                                        </div>
                                                    </li>
                                                    <li class="td td-operation">
                                                        <div class="item-number" id="num">
                                                            <span>[[${order.orderPrice}]]</span>
                                                        </div>
                                                    </li>
                                                </ul>

                                            </div>
                                            <div class="order-right">
                                                <li class="td td-amount">
                                                    <div class="item-amount" id="state">
                                                        [[${order.orderNum}]]
                                                    </div>
                                                </li>
                                                <li class="td td-status">
                                                    <div class="item-status">
                                                        <br>
                                                        <p></p>
                                                        <p> [[${order.orderSum}]]</p>
                                                    </div>
                                                </li>
                                                <li class="td td-item"></li>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <aside class="menu">
        <ul>
            <li class="person active">
                <a href="index.html">个人中心</a>
            </li>
            <li class="person">
                <a href="">个人资料</a>
                <ul>
                    <li> <a href="/user/userinfo">个人信息</a></li>
                    <li> <a href="safety.html">安全设置</a></li>
                    <li> <a href="address.html">收货地址</a></li>
                </ul>
            </li>
            <li class="person">
                <a href="#">我的交易</a>
                <ul>
                    <!--<li><a href="order.html">订单管理</a></li>-->
                    <li><a th:href="'/order/orderall?userId='+${session.user.getUserId()}">列表</a></li>
                </ul>
            </li>

            <li class="person">
                <a href="#">我的资产</a>
                <ul>
                    <li> <a href="coupon.html">优惠券 </a></li>
                    <li> <a href="bonus.html">红包</a></li>
                    <li> <a href="bill.html">账单明细</a></li>
                </ul>
            </li>
            <div th:if="${session.user.userType}=='seller'">
                <li class="person" >
                    <a href="#">我的店铺</a>
                    <ul>
                        <li> <a th:href="'/store/showallbyuid?userId='+${session.user.getUserId()}">列表</a></li>
                        <li> <a href="#">查找</a></li>
                        <li> <a href="#">申请</a></li>
                    </ul>
                </li>
            </div>


            <li class="person">
                <a href="#">我的小窝</a>
                <ul>
                    <li> <a href="collection.html">收藏</a></li>
                    <li> <a href="foot.html">足迹</a></li>
                    <li> <a href="comment.html">评价</a></li>
                    <li> <a href="news.html">消息</a></li>
                </ul>
            </li>



        </ul>

    </aside>
</div>
</body>

</html>